package cn.cheln.explorer.ds.database.copersynch;

import android.content.ContentResolver;
import android.content.Context;
import android.net.Uri;
import cn.cheln.explorer.beans.FileInfo;
import cn.cheln.explorer.beans.FileUtil;
import cn.cheln.explorer.ds.MediaArgs;
import cn.cheln.support.images.MimeTypeMap;
import java.io.File;

public class DatasrcDelete
{
  public static void recursiveUpdateDel(FileInfo paramFileInfo, Context paramContext)
  {
    String str1 = FileUtil.getRealExtension(paramFileInfo.getName());
    String str2 = MimeTypeMap.getSingleton().getMimeTypeFromExtension(str1.toLowerCase());
    paramFileInfo.buildFile();
    if ((paramFileInfo.isDir.booleanValue()) || (paramFileInfo.getFile().isDirectory()));
    for (Uri localUri = MediaArgs.dirUri; ; localUri = MediaArgs.otherUri)
    {
      boolean bool;
      do
      {
        while (true)
        {
          if (localUri != null)
          {
            ContentResolver localContentResolver = paramContext.getContentResolver();
            String[] arrayOfString = new String[1];
            arrayOfString[0] = paramFileInfo.getPath();
            localContentResolver.delete(localUri, "_data like ?", arrayOfString);
          }
          do
            return;
          while (str2 == null);
          if (str2.startsWith("image"))
            localUri = MediaArgs.ImageUri;
          if (str2.startsWith("audio"))
            localUri = MediaArgs.AudioUri;
          if (str2.startsWith("video"))
            localUri = MediaArgs.VideoUri;
          if (paramFileInfo.getName().trim().toLowerCase().endsWith("apk"))
            localUri = MediaArgs.otherUri;
          if ((!(str2.startsWith("application"))) && (!(str2.startsWith("text"))))
            break;
          localUri = MediaArgs.otherUri;
        }
        bool = paramFileInfo.name.trim().toLowerCase().endsWith("lwt");
        localUri = null;
      }
      while (!(bool));
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.ds.database.copersynch.DatasrcDelete
 * JD-Core Version:    0.5.2
 */